import request from '@/utils/request'

// 订单管理分页数据
export const getBusiness = (params) => {
  return request({ url: `/manager/order-manager/order/page`, data: params, method: 'post' })
}

// 获取订单详情
export const getBusinessApi = (id) => {
  return request({ url: `/manager/order-manager/order/${id}` })
}

// 运单管理分页数据
export const getOrder = (params) => {
  return request({ url: `/manager/transport-order-manager/page`, data: params, method: 'post' })
}

// 运单详情
export const getOrderApi = (id) => {
  return request({ url: `/manager/transport-order-manager/${id}` })
}

// 省份
export const getAll = (parentId) => {
  return request({
    url: '/manager/areas/children',
    params: {
      parentId: parentId
    }})
}

// 更新订单
export const delRole = (id) => {
  return request({ url: `/manager/order-manager/order/${id}`, method: 'post' })
}
